﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace BrsdServer
{
    public partial class login : System.Web.UI.Page
    {
        userInfoBLL userInfo = new userInfoBLL();
        protected void Page_Load(object sender, EventArgs e)
        {
            String strName =Request.QueryString["Name"];
            String strPwd =Request.QueryString["Pwd"];

            //是否含有用户和密码，如果有返回1 否则返回0
            int isExit=userInfo.FindByUserAndPwd(strName, strPwd);
            if (isExit==1)
            {
                //将Session赋值，以便后面可以利用。
                Session["nameSession"] = strName;
                Session["pwdSession"] = strPwd;
            }
            Response.Write(isExit);
        }
    }
}
